<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>用户详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/web/res/css/xadmin.css">
    <script src="/web/res/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/web/res/js/xadmin.js"></script>
    <script type="text/javascript" src="/web/res/js/common.js"></script>
</head>
<body style="background-color: white;">
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <#if user?exists>
            <form class="layui-form layui-form-pane" id="formsubmit" style="margin:20px auto" action="">
                <input type="hidden" id="id" name="id" value="${(user.id)!''}">
                <div class="layui-form-item ">
                    <label class="layui-form-label" style="width: 150px;">登录名：</label>
                    <div class="layui-input-block">
                        <input type="text"  style="width:80%;" readonly class="layui-input" value="${(user.loginname)!''}" />
                    </div>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label" style="width: 150px;">真实名称：</label>
                    <div class="layui-input-block">
                        <input type="text"  style="width:80%;" readonly class="layui-input" value="${(user.nick)!''}" />
                    </div>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label" style="width: 150px;  margin-right: 10px;">头像：</label>
                    <div class="layui-input-block">
                        <#if user?exists && user.pic?exists && user.pic?length gt 2>
                        <div class="upload-imgBox" >
                            <a href="javascript:void(0);" class="img_biges" title="${(user.pic)!''}">
                                <input type="hidden"  id="imgpathhide"  value="${(user.pic)!''}"  class="layui-input"/>
                                <img  src="${(user.pic)!''}" class="upload-select-img">
                            </a>
                        </div>
                        <#else>
                        <div class="divimg" style="margin-left:60px;" ><i class="layui-icon layui-icon-picture-fine"></i></div>
                        </#if>
                    </div>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label" style="width: 150px;">手机号：</label>
                    <div class="layui-input-block">
                        <input type="text"  style="width:80%;" readonly class="layui-input" value="${(user.phone)!''}" />
                    </div>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label" style="width: 150px;">生日：</label>
                    <div class="layui-input-block">
                        <input type="text"  style="width:80%;" readonly  class="layui-input color-input"
                               value="<#if user.birthday?exists>${(user.birthday?string('yyyy-MM-dd HH:mm:ss'))!}</#if>" />
                    </div>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label" style="width: 150px;">地址：</label>
                    <div class="layui-input-block">
                        <input type="text"  style="width:80%;" readonly class="layui-input" value="${(user.address)!''}" />
                    </div>
                </div>
            <div class="layui-form-item ">
                <label class="layui-form-label" style="width: 150px;">我的签名：</label>
                <div class="layui-input-block">
                    <input type="text"  style="width:80%;" readonly class="layui-input" value="${(user.mysign)!''}" />
                </div>
            </div>
            <div class="layui-form-item ">
                <label class="layui-form-label" style="width: 150px;">邀请码：</label>
                <div class="layui-input-block">
                    <input type="text"  style="width:80%;" readonly class="layui-input" value="${(user.code)!''}" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">是否禁用：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="states" value="${user.states!''}" lay-skin="switch" lay-text="正常|禁用" {{ user.states != 1 ? 'checked' : '' }}  <#if user.states?exists && (user.states)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">实名状态：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="status" value="${user.status!''}" lay-skin="switch" lay-text="已实名|未实名" {{ user.status != 1 ? 'checked' : '' }}  <#if user.status?exists && (user.status)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
            </div>
            <div class="layui-form-item ">
                <label class="layui-form-label" style="width: 150px;">推送唯一标识：</label>
                <div class="layui-input-block">
                    <input type="text"   style="width:80%;" readonly class="layui-input" value="${(user.token)!''}" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">在线状态：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="onlinestatus" value="${user.onlinestatus!''}" lay-skin="switch" lay-text="是|否" {{ user.onlinestatus != 1 ? 'checked' : '' }}  <#if user.onlinestatus?exists && (user.onlinestatus)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">青少年状态：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="teenagers" value="${user.teenagers!''}" lay-skin="switch" lay-text="开启|关闭" {{ user.teenagers != 1 ? 'checked' : '' }}  <#if user.teenagers?exists && (user.teenagers)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
            </div>
            <div class="layui-form-item ">
                <label class="layui-form-label" style="width: 150px;">上级用户的邀请码：</label>
                <div class="layui-input-block">
                    <input type="text"   style="width:80%;" readonly class="layui-input" value="${(user.invitationcode)!''}" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">消息提示：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="messagealert" value="${user.messagealert!''}" lay-skin="switch" lay-text="是|否" {{ user.messagealert != 1 ? 'checked' : '' }}  <#if user.messagealert?exists && (user.messagealert)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">仅接受好友消息：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="friendmessage" value="${user.friendmessage!''}" lay-skin="switch" lay-text="是|否" {{ user.friendmessage != 1 ? 'checked' : '' }}  <#if user.friendmessage?exists && (user.friendmessage)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label"  style="width: 150px;">附近功能：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="nearfunction" value="${user.nearfunction!''}" lay-skin="switch" lay-text="是|否" {{ user.nearfunction != 1 ? 'checked' : '' }}  <#if user.nearfunction?exists && (user.nearfunction)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label"  style="width: 150px;">是否有关联模块：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="modulestatus" value="${user.modulestatus!''}" lay-skin="switch" lay-text="是|否" {{ user.modulestatus != 1 ? 'checked' : '' }}  <#if user.modulestatus?exists && (user.modulestatus)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
            </div>
            <div class="layui-form-item ">
                <label class="layui-form-label" style="width: 150px;">游戏消费钻石：</label>
                <div class="layui-input-block">
                    <input type="text"   style="width:80%;" readonly class="layui-input" value="${(user.gamemoney?c)!''}" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">音频直播：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="yinpinzb" value="${user.yinpinzb!''}" lay-skin="switch" lay-text="是|否" {{ user.yinpinzb != 1 ? 'checked' : '' }}  <#if user.yinpinzb?exists && (user.yinpinzb)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">视频直播：</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="states" value="${user.shipinzb!''}" lay-skin="switch" lay-text="是|否" {{ user.shipinzb != 1 ? 'checked' : '' }}  <#if user.shipinzb?exists && (user.shipinzb)?number == 1>checked</#if> disabled/>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">姓名：</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly value="${(user.xingming)!''}" style=" width: 80%;" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">支付宝：</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly value="${(user.alipay)!''}kg" style=" width: 80%;" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item ">
                <label class="layui-form-label" style="width: 150px;">银行卡号：</label>
                <div class="layui-input-block">
                    <input type="text"   style="width:80%;" readonly class="layui-input" value="${(user.banknum)!''}" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">动态总数：</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly value="${(user.dongtaiall)!''}" style=" width: 80%;" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">新增动态数：</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly value="${(user.dongtai)!''}" style=" width: 80%;" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item ">
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">新增粉丝数</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly value="${(user.fansnum)!''}" style=" width: 80%;" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 150px;">粉丝总数：</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly value="${(user.fansnumall)!''}" style=" width: 80%;" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 150px;">关注总数：</label>
                <div class="layui-input-block">
                    <input type="text" readonly value="${(user.guanzhu)!''}" style=" width: 80%;" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item ">
                <label class="layui-form-label" style="width: 150px;">创建时间：</label>
                <div class="layui-input-block">
                    <input type="text"  style="width:80%;" readonly  class="layui-input color-input"
                           value="<#if user.createtime?exists>${(user.createtime?string('yyyy-MM-dd HH:mm:ss'))!}</#if>" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <!--<button type="button" class="layui-btn layui-btn-radius" lay-submit lay-filter="save" >&emsp;保存&emsp;</button>-->
                    <button type="button" class="layui-btn layui-btn-primary layui-btn-radius" onclick="xadmin.close()">&emsp;返回&emsp;</button>
                </div>
            </div>
        </form>
        <#else>
        <div class="layui-form-item " style="text-align: center;">
            <h1>暂无记录</h1>
        </div>
        </#if>
        </div>
    </div>
</div>
</body>
<script>
    layui.use(['laydate', 'form', 'table'], function () {
        let $ = layui.$;
        var form = layui.form;

        //图片预览
        $(".img_biges").click(function(){
            var url = $(this).attr('title');
            showimg(url)
        });



    });

</script>
</html>